package com.dycx.system.service;

import com.dycx.common.RestResponse;
import com.dycx.system.dto.AdminDTO;

import javax.servlet.http.HttpServletRequest;


public interface AuthService {

    /**
     * 后台登录
     *
     * @param adminDto
     * @return
     */
    String login(AdminDTO adminDto);

    /**
     * 验证是否有接口访问权限
     *
     * @param request
     * @return
     */
    RestResponse<String> auth(HttpServletRequest request);

}
